// Modal 基础样式
.ant-modal {
  &.xwd-modal-draggable {
    .ant-modal-header {
      cursor: move;
      user-select: none;
    }
  }

  &.xwd-modal-resizable {
    position: relative;
    border: 1px solid transparent;

    .ant-modal-content {
      resize: none;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: 100% !important;
    }

    .ant-modal-body {
      flex: 1;
      overflow: auto;
      min-height: 0;
    }
  }

  &.xwd-modal-resizable:hover {
    border-color: #1890ff;
  }
}

// Resize handles
.resize-handle {
  position: absolute;
  background: transparent;
  z-index: 1000;
  pointer-events: auto;

  &.right {
    right: -3px;
    top: 0;
    width: 3px;
    height: 100%;
    cursor: e-resize;
    background: rgb(0 0 0 / 10%);
  }

  &.bottom {
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    cursor: s-resize;
    background: rgb(0 0 0 / 10%);
  }

  &.corner {
    right: -3px;
    bottom: -3px;
    width: 3px;
    height: 3px;
    cursor: se-resize;
    background: rgb(0 0 0 / 10%);
  }

  &:hover {
    background: rgb(0 0 0 / 20%);
  }
}
